
import { HashRouter } from 'react-router-dom';

import RouterWaiter from 'react-router-waiter'
import routes from './routes';
import onRouteBefore from './routes/onRouteBefore' // 引入你定义的路由拦截函数
import './App.less';

function App() {
  // const element = useRoutes(routes)
  return (

    <div className='App'>
      <HashRouter>
        <RouterWaiter
          routes={routes}
          onRouteBefore={onRouteBefore}>
        </RouterWaiter>
      </HashRouter>
    </div>

  );
}

export default App;
